package com.qfedu.openplateform.manager.service.impl;

import com.qfedu.openplateform.manager.dao.ApiMappingMapper;
import com.qfedu.openplateform.manager.dao.ApiSystemparamMapper;
import com.qfedu.openplateform.manager.entity.ApiSystemparam;
import com.qfedu.openplateform.manager.service.ApiSystemparamService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * @author: 叶上秋
 * @date: 2021/10/27 17:52
 * @version: 1.0
 * @description:
 */
@Service
@Transactional
public class ApiSystemparamServiceImpl implements ApiSystemparamService {
    @Autowired
    private ApiSystemparamMapper apiSystemparamMapper;
    @Override
    public List<ApiSystemparam> findAllApiSystemparam() {
        return apiSystemparamMapper.findAllApiSystemparam();
    }

    @Override
    public void addApiSystemparam(ApiSystemparam apiSystemparam) {
        apiSystemparamMapper.addApiSystemparam(apiSystemparam);
    }

    @Override
    public void deleteApiSystemparam(Integer[] ids) {
        for (Integer id : ids) {
            apiSystemparamMapper.deleteApiSystemparam(id);
        }

    }

    @Override
    public void updateApiSystemparam(ApiSystemparam apiSystemparam) {
        apiSystemparamMapper.updateApiSystemparam(apiSystemparam);
    }


}
